package cn.ks.service.impl;

import cn.ks.domain.Type;
import cn.ks.mapper.TypeMapper;
import cn.ks.service.ITypeService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zlj
 * @since 2022-11-18
 */
@Service
public class TypeServiceImpl extends ServiceImpl<TypeMapper, Type> implements ITypeService {

    @Autowired
    TypeMapper typeMapper;

    @Override
    public Type getByName(String name) {
        return typeMapper.selectByName(name);
    }
}
